﻿<UserControl x:Class="SimpleQueryTool.Views.ToolBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cal="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="700">
		<ToolBarTray Name="Test">
		<ToolBar>
			<TextBlock Text="Connection" />
			<ComboBox x:Name="Connections" SelectedItem="{Binding SelectedConnection, UpdateSourceTrigger=PropertyChanged}" Width="200" cal:Message.Attach="[Event SelectionChanged] = [Action OpenConnectionManager()]">
				<ComboBox.ItemTemplate>
					<DataTemplate>
						<TextBlock Text="{Binding Name}" />
					</DataTemplate>
				</ComboBox.ItemTemplate>
			</ComboBox>
			<Button x:Name="ExecuteQuery" Content="Execute" />
		</ToolBar>
	</ToolBarTray>
</UserControl>
